home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / Spirea-X.adf / BootX5.10 / Installer.script < prev   
Text File  |  1992-07-19  |  3KB  |  142 lines

  1.  
  2. ; $VER: Install BootX v1.01 (20.7.92)
  3. ;
  4. ;    Installer script for BootX.
  5. ;
  6.  
  7.     (set UserLevel.old @user-level)
  8.  
  9. ; Initialize messages.
  10.  
  11.     (set Language 2)
  12.  
  13.     (set #WrongKickStart "\nYou must be using at least KickStart 2.04 to run this version of BootX.")
  14.     (set #CopyingReqTools "Copying ReqTools.library v38 to Libs:")
  15.     (set #CopyingPowerPacker "Copying PowerPacker.library to Libs:")
  16.     (set #WhichLanguage "\nWhich languages should be installed ?\n")
  17.     (set #WhichLanguageHelp
  18.       (cat "\n"
  19.            "The Amiga can be operated in many different"
  20.            "languages. If you want BootX to use the same"
  21.            "language as the Amiga Workbench then a catalog"
  22.            "file must be copied to your system disk for"
  23.            "each language supported.\n"
  24.            "\n"
  25.            "To reduce the amount of space consumed by the"
  26.            "language files, you can select to have only the"
  27.            "files of specific languages copied.\n"
  28.            "\n"
  29.            "Simply check the boxes of the languages you wish"
  30.            "to have available on your system.\n"
  31.            "\n"
  32.            @askoptions-help
  33.       )
  34.     )
  35.  
  36. ; Welcome the user.
  37.  
  38.     (complete 0)
  39.     (welcome)
  40.  
  41. ; Make sure we are running under KickStart 2.04.
  42.  
  43.     (if (< (/ (getversion) 65536) 37)
  44.       (abort #WrongKickStart)
  45.     )
  46.  
  47. ; Copy the BootX executable and support files.
  48.  
  49.     (set BootX_Dest "Work:Utilities")
  50.  
  51.     (set BootX_Dest
  52.       (askdir
  53.         (prompt "\nSelect the drawer where you want the BootX program "
  54.             "and its support files to reside.\n")
  55.         (help @askdir-help)
  56.         (default BootX_Dest)
  57.       )
  58.     )
  59.  
  60.     (copyfiles
  61.       (prompt "\nSelect which files to install:\n")
  62.       (help @copyfiles-help)
  63.       (dest BootX_Dest)
  64.       (choices "BootX" "BootX.Alarm" "BootX.BBLib" "BootX.Brain"
  65.            "BootX.Recog")
  66.       (infos)
  67.       (confirm)
  68.     )
  69.  
  70.     (complete 70)
  71.  
  72. ; Copy the BootX.doc and BootX.history files.
  73.  
  74.     (if
  75.       (askbool
  76.         (prompt "\nDo you wish to install the BootX documentation ?")
  77.         (help @askbool_help)
  78.         (default 1)
  79.       )
  80.  
  81.       (
  82.         (set BootX_Doc
  83.           (askdir
  84.         (prompt "\nSelect the drawer where you want the BootX "
  85.             "documentation to reside.\n")
  86.         (help @askdir-help)
  87.         (default BootX_Dest)
  88.           )
  89.         )
  90.  
  91.         (copyfiles
  92.           (prompt "\nSelect which files to install:\n")
  93.           (help @copyfiles-help)
  94.           (dest BootX_Doc)
  95.           (choices "BootX.doc" "BootX.History" "BootX.Recog.History")
  96.           (infos)
  97.           (confirm)
  98.         )
  99.       )
  100.     )
  101.  
  102.     (complete 90)
  103.  
  104. ; Copy the ReqTools library.
  105.  
  106.     (message
  107.       "\n"
  108.       "The reqtools.library will now be installed.\n"
  109.       "\n"
  110.       "BootX requires this library to run."
  111.     )
  112.  
  113.     (copylib
  114.       (prompt "\n" #CopyingReqTools)
  115.       (help @copylib-help)
  116.       (source "Libs/reqtools.library")
  117.       (dest "Libs:")
  118.       (confirm)
  119.     )
  120.  
  121. ; Copy the PowerPacker library.
  122.  
  123.     (message
  124.       "\nBootX can load and save its external files using the "
  125.       "PowerPacker.library by Nico François\n"
  126.     )
  127.  
  128.     (copylib
  129.       (prompt "\n" #CopyingPowerPacker)
  130.       (help @copylib-help)
  131.       (source "Libs/powerpacker.library")
  132.       (dest "Libs:")
  133.       (confirm)
  134.     )
  135.  
  136.     (complete 100)
  137.  
  138. ; Cleanup
  139.  
  140.     (set @default_dest BootX_Dest)
  141.     (exit)
  142.